/**
 * Created by cuppi on 2017/7/4.
 */

class StatusManager {
  static statusList() {
    return [
      1, // "未支付"
      2, // "订单关闭"
      3, // "支付失败"
      4, // "支付中"
      5, // "出票中"
      6, // "购票成功"
      7, // "购票失败"
      '待支付',
      '已关闭',
      '支付失败',
      '支付中',
      '出票中',
      '出票失败，退款中',
      '退款失败，联系客服',
      '已退款',
      '交易成功'
    ];
  }

  static statusCNList() {
    return [
      '待支付',
      '已关闭',
      '支付失败',
      '支付中',
      '已发货',
      '退款失败，联系客服',
      '退款成功'
    ];
  }

  static deleteVisibleList() {
    return ['已关闭', '已退款', '交易成功'];
  }

  static isDeleteVisible(status) {
    return StatusManager.deleteVisibleList().indexOf(status) !== -1;
  }

  static payVisibleList() {
    return [1, 3, '待支付', '支付失败'];
  }

  static isPayVisible(status) {
    return StatusManager.payVisibleList().indexOf(status) !== -1;
  }

}

export default StatusManager;
